<div class="container-fluid">
    <h3 style="color:#8C525B;border-bottom:1px solid #F1F1F1;padding-bottom:10px;padding-left:10px;">客户类型</h3>
    <div class="panel panel-default">
        <div class="panel-heading">
         <p class="panel-title" style="height:35px;line-height:35px">
            类型列表
                <a href="ctype.php?action=add" class="btn btn-info pull-right">添加</a>
            </p>
        </div>
        <div class="panel-body">
            <table class=" table table-bordered" >
                <tr>
                    <th><strong>序号</strong></th>
                    <th><strong>客户类型</strong></th>
                    <th><strong>操作</strong></th>
                </tr>
                <?php if(isset($res)):?>
                <?php foreach($res as $v):?>
                <tr>
                    <td><?php echo $v[0];?></td>
                    <td><?php echo $v[1];?></td>
                    <td>
                       <a href="ctype.php?action=delete&ctype_id=<?php echo $v[0]?>"><span class="glyphicon glyphicon-trash"></span>
                           删除
                       </a>
                    </td>
                </tr>
                <?php endforeach;?>
                <?php endif;?>
            </table>
            <div>
                <span class="pull-left">共有<?php echo $rowNum;?>条记录，当前第<?php echo $page;?>/<?php echo $maxPage;?>页</span>
                <ul class="pagination pull-right">
                    <li><a href="ctype.php?action=list&page=1">首页</a></li>
                    <li><a href="ctype.php?action=list&page=<?php echo  ($page!=1)?$page-1:1;?>">上一页</a></li>
                    <li><a href="ctype.php?action=list&page=<?php echo  ($page!=$maxPage)?$page+1:$maxPage;?>">下一页</a></li>
                    <li><a href="ctype.php?action=list&page=<?php echo $maxPage?>">尾页</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>